//统一管理API
import requests from "./ajax";
import mockRequests from "./mockAjax";

//三级联动接口 /api/product/getBaseCategoryList get 无参数
//axios发请求返回结果为Promise对象
export const reqCategoryList = () => requests({url: '/product/getBaseCategoryList',method:'get'});
export const reqGetSearchInfo = (params) => requests({url: "/product/getSearchList",method: "post",data:params});
//获取banner数据（home首页轮播图接口）
export const reqGetBannerList = () => mockRequests.get('/banner');
//获取floor数据
export const reqGetFloorList = () => mockRequests.get('/floor');
//获取搜索模块数据
//当前这个接口给服务器发的参数params至少是一个空对象
